force-sse2-compiler-rt
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 16 Dec 2025 11:47:30 +0000 (12:47 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 16 Dec 2025 11:47:30 +0000 (12:47 +0100)
===================================================================

Gbp-Pq: Name force-sse2-compiler-rt.diff

compiler-rt/lib/builtins/CMakeLists.txt

index 8427d2e852eef2e6667bd220708f1537c53f57fc..53e46eb042ef4cd7b40ff02ecbfce83d4dd9535b 100644 (file)
@@ -1039,6 +1039,12 @@ if (COMPILER_RT_BUILD_CRT)
     append_list_if(COMPILER_RT_ENABLE_CET -fcf-protection=full CRT_CFLAGS)
   endif()
 
+  if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
+    append_list_if(COMPILER_RT_HAS_FLOAT16 -msse2 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS)
+  else ()
+    append_list_if(COMPILER_RT_HAS_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS)
+  endif()
+
   foreach(arch ${BUILTIN_SUPPORTED_ARCH})
     add_compiler_rt_runtime(clang_rt.crtbegin
       OBJECT